﻿<?xml version="1.0" encoding="utf-8" ?>
<NDiagnostics>
  <Groups>
    <!-- Verify the .NET 2.0 and 3.0 Frameworks are installed -->
    <Group name=".NET Framework">
      <Task name="NETFXTask" description=".NET 2.0 Check" version="2.0.50215" />
      <Task name="NETFXTask" description=".NET 3.0 Check" version="3.0" />
    </Group>
    <!-- Check to ensure the current user belongs to the local Administrators group -->
    <Group name="Administrator Check">
      <Task name="RoleTask" description="Current User is Administrator" domain="" userName="" role="Administrators"/>
    </Group>
    <!-- Let's check for some required files-->
    <Group name="Required Files">
      <Task name="FileTask" description="Application Data File" path="NDiagnostics.exe" version=""/>
    </Group>
    <!-- Let's check for some required folders -->
    <Group name="Required Folders">
      <Task name="FolderTask" description="Program Folder" path="C:\Program Files" />
    </Group>
    <!-- Let's ensure the Windows Update service set to start automatically under the Local System account and is running -->
    <Group name="Windows Services">
      <Task name="WindowsServiceTask" description="Windows Update Service" serviceName="wuauserv" serviceStatus="Running" startupType="Auto" startupAccount="LocalSystem" />
    </Group>
    <!-- Let's check for some running processes -->
    <Group name="Required Processes Running">
      <Task name="ProcessRunningTask" description="NDiagnostics" processName="NDiagnostics" processDescription="NDiagnostics"/>
    </Group>
    <!-- Let's check to see if a registry value is correct -->
    <Group name="Windows Registry">
      <Task name="RegistryTask" description="Version Check" baseKey="HKEY_LOCAL_MACHINE" key="\SOFTWARE\Microsoft\Windows\CurrentVersion" valueName="DevicePath" value="%SystemRoot%\inf" expandVariables="no" />
    </Group>
  </Groups>
</NDiagnostics>